#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int n, k;
    scanf("%d %d", &n, &k);
    int a[1000000];
    for (int i = 0; i < n; i++)
    {
        scanf("%d", &a[i]);
    }
    if (a[n - 1] < k)
    {
        printf("%d", n + 1);
    }
    else
    {
        int left = 0, right = n - 1;
        int mid = (left + right) / 2;
        while (left < right)
        {
            if (a[mid] >= k)
            {
                right = mid;
            }
            else
            {
                left = mid + 1;
            }
            mid = (left + right) / 2;
        }
        printf("%d\n", mid + 1);
    }
    return 0;
}